package com.qc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.qc.dao.HeightDao;
import com.qc.entity.HeightEntity;
import com.qc.service.HeightService;

@SuppressWarnings("rawtypes")
@Service("heightService")
public class HeightServiceImpl implements HeightService{

    @Resource
    private HeightDao heightDao;

    @Override
    public int getListHeightCount(String name) {

        return heightDao.getListHeightCount(name);
    }

    @Override
    public List getAllHeight(String name, int pageNo, int pageSize) {

        return heightDao.getAllHeight(name, pageNo, pageSize);
    }

    @Override
    public int saveHeight(HeightEntity heightEntity) {
        
        return heightDao.saveHeight(heightEntity);
    }

    @Override
    public int deleteHeightId(long id) {

        return heightDao.deleteHeightId(id);
    }

    @Override
    public int updateHeightId(HeightEntity heightEntity) {

        return heightDao.updateHeightId(heightEntity);
    }
    
}
